package cn.com.chengmandian.service.erp.fallback;

import cn.com.chengmandian.core.web.pojo.AjaxResult;
import cn.com.chengmandian.service.erp.ErpStockClient;
import cn.com.chengmandian.service.erp.form.PurchaseApplyAuditSuccessForm;
import cn.com.chengmandian.service.erp.form.StockApplyAuditForm;
import cn.com.chengmandian.service.erp.form.StockApplyBatterySignForm;
import cn.com.chengmandian.service.erp.form.StockApplySignForm;
import org.springframework.stereotype.Component;

@Component
public class ErpStockClientFallback implements ErpStockClient {

    @Override
    public AjaxResult purchaseApplyAudit(PurchaseApplyAuditSuccessForm form) {
        return AjaxResult.error("调用purchaseApplyAudit失败!");
    }

    @Override
    public AjaxResult stockApplyAudit(StockApplyAuditForm form) {
        return AjaxResult.error("调用stockApplyAudit失败!");
    }

    @Override
    public AjaxResult stockApplySign(StockApplySignForm form) {
        return AjaxResult.error("调用stockApplySign失败!");
    }

    @Override
    public AjaxResult stockApplyBatterySign(StockApplyBatterySignForm form) {
        return AjaxResult.error("调用stockApplyBatterySign失败!");
    }
}
